]> dgit.raspbian.org Git - gnome-shell.git/commit
build: Set up jasmine for unit testing
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 20 Jan 2024 20:04:05 +0000 (21:04 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 21 May 2024 13:42:28 +0000 (13:42 +0000)
commit151e2faa0f8a53bce1b98722a092c1c497c6fbf2
tree3c34f85e9f78612afeeee3759413db2b364ffea3
parent1fcdc60ca07d8956eddf0e2aa27c5a450fe835ce
build: Set up jasmine for unit testing

Jasmine[0] is a popular testing framework for javascript, which
gjs itself has used in a heavily customized form for its own
unit tests for years.

It's far superior to the very rudimentary `jsUnit` module that
is still included with gjs, and the jasmine-gjs project provides
a general-purpose wrapper for gjs apps.

Set up the necessary build infrastructure to run unit tests
through jasmine. That allows for existing unit tests to be
ported one-by-one.

[0] https://jasmine.github.io/index.html

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3164>
.gitlab-ci.yml
meson.build
subprojects/jasmine-gjs.wrap [new file with mode: 0644]
tests/meson.build
tests/unit/.eslintrc.yml [new file with mode: 0644]